//页面缓存
var cache = {};

$(function() {
	$("input[type!='button']").val('');
});

function search() {

	var startDate = $("#startDate").val();
	var endDate = $("#endDate").val();

	var data = {
		startDate : startDate,
		endDate : endDate
	};

	_pagination = new Pagination({
		url : '../member/find/bzrank/280000022',
		data : data,
		success : printListToPage,
		pagerHandler : 'pager'
	});
}

function printListToPage(rst) {
	var response = new qmsk.Response(rst);
	qmsk.dataTable({
		tbodyId : 'customerList',
		heads : ["customerName", "mp", "integralAmount"],
		response : response,
		sup : ['sup', '共 [index] 条'],
		handler : []
	});
}

function down() {
	var startDate = $("#startDate").val();
	var endDate = $("#endDate").val();

	var data = {
		startDate : startDate,
		endDate : endDate
	};
	qmsk.redirectUrl("../member/down/bzrank/280000022", data);
}
